home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 6
/
FM Towns Free Software Collection 6.iso
/
t_os
/
cutf
/
asm
/
csize1.hd6
< prev
next >
Wrap
Text File
|
1993-07-08
|
4KB
|
303 lines
ds_name db 'MOZCF\CSIZE',0
; out 506 cut size
look_me:
call sub_esi
dd 0,0
dw 0,0 ; wind need
dw 150,120,250,150 ; sz_x sz_y off x off y
dw 15,6 ; waku iro meniro
dw 0,0
ura:
call sub_edi
dw 0
db'URA',0
p_call:
M_P_CALL
p_set:
M_P_SET
paint_wd:
SET_P ura
re_paint:
WD_WANT
WD_CLS 0
BOX boxdt,8
call icon1
call p_icon
call icon2
call p_icon
MOZI mozidt
MOZI mozidt1
MOZI mozidt2
MOZI mozidt3
ret
p_icon:
mov ah,100
mov al,31
call komei1
ret
icon1:
call sub_edi
dw 1,200+32,50,1,4,33,13,0
icon2:
call sub_edi
dw 1,200,50-32,1,14,0
boxdt:
call sub_edi
dw 2,30,15,0,3,0,50,15,7,0
dw 2,30,15,34,3,0,50,15,7,0
dw 2,30,15,68,3,0,50,15,7,0
dw 1,40,65,105,3,0,0,15,8,0
dw 1,102,30,0,20,0,0,15,8,0
boxdt1:
call sub_edi
dw 1,102,30,0,19,0,0,15,8,0
mozidt:
call sub_edi
dw 0,15,8,0,34,0,3
db '*',0
db '*',0
db '*',0
dw 0,0
mozidt1:
call sub_edi
dw 0,15,8,50,34,0,3
db '*',0
db '*',0
db '*',0
dw 0,0
mozidt2:
call sub_edi
dw 0,15,30,26,41,0,3
db '000',0
db 'K',0
db '決定',0
dw 0,0
mozidt3:
call sub_edi
dw 0,15,10,75,0,20,2
db '分割後のサイズを',0
db '指定してください',0
dw 0,0
be_called:
call re_paint
call st_chk
jmp matu
ck_mouse:
M_KENMS
kesu_m:
M_KESUMS
left_wd:
WD_LEFT
WD_ERZ 0
ret
kaisu:
call sub_edi
dw 0
matu1:
; call kaisu
; inc word ptr [edi]
; cmp word ptr [edi],400
; jne matu
; mov word ptr [edi],0
KAKU word ptr 300,3000
CALL_P ura
KAKU word ptr 300,0
matu:
call ck_mouse
mouse_in:
cmp ch,0
je matu1
mck_m0:
MOU boxdt,7
cmp bx,1 ;bx=1 find
jne matu
cmp ax,1
je d_f1
cmp ax,2
je d_f2
cmp ax,3
je d_f3
cmp ax,4
je d_f4
cmp ax,5
je d_f5
cmp ax,6
je d_f6
cmp ax,7
je d_f7
jmp matu
d_fsize:
call sub_edi
dw 0
d_f1:
call kesu_m
call d_fsize
mov ax,[edi]
cmp ax,200
jge matu
add ax,100
mov [edi],ax
call w_fsz
jmp matu
d_f2:
call kesu_m
call d_fsize
mov ax,[edi]
cmp ax,100
jl matu
sub ax,100
mov [edi],ax
call w_fsz
jmp matu
d_f3:
call kesu_m
call d_fsize
mov ax,[edi]
cmp ax,240
jg matu
add ax,10
mov [edi],ax
call w_fsz
jmp matu
d_f4:
call kesu_m
call d_fsize
mov ax,[edi]
cmp ax,10
jl matu
sub ax,10
mov [edi],ax
call w_fsz
jmp matu
d_f5:
call kesu_m
call d_fsize
mov ax,[edi]
cmp ax,250
jge matu
inc ax
mov [edi],ax
call w_fsz
jmp matu
d_f6:
call kesu_m
call d_fsize
mov ax,[edi]
cmp ax,0
jle matu
dec ax
mov [edi],ax
call w_fsz
jmp matu
d_f7:
call kesu_m
mov eax,0
call d_fsize
mov ax,[edi]
mov bx,1000
mul bx
mov ebx,eax
mov eax,edx
shl eax,16
mov ax,bx
cmp eax,1000
jl d_f71
KAKU 506,eax
jmp left_wd
d_f71:
mov eax,30000
KAKU 506,eax
jmp left_wd
w_fsz:
call d_fsize
mov ax,[edi]
call mozidt2
add edi,14
call stom_3
BOX boxdt1,1
MOZI mozidt2
ret
st_chk:
mov eax,50000
KAKU 506,eax
mov ebx,1000
mov edx,0
div ebx
call d_fsize
mov [edi],ax
call w_fsz
ret
stom_3:
pushad
mov ebx,3
stom_0:
cmp ax,0
je zerokaesi
stom_0_0:
mov cx,10
mov dx,0
div cx
add dl,30h
mov [edi+ebx-1],dl
dec ebx
jnz stom_0
popad
ret
zerokaesi:
mov dl,160
mov [edi],dl
inc edi
dec ebx
cmp ebx,0
jne zerokaesi
popad
ret